package com.domi.service;

import com.domi.bean.RestfulResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient(name = "book-center", path = "/book")
public interface BookService {

    @GetMapping("/info/{id}")
    RestfulResponse info(@PathVariable Integer id);

}